package com.csesteel.crm.domain;

import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Collection;

/**
 * Created by Administrator on 2015/5/15 0015.
 */
public interface UserDetails extends Serializable {
    Collection<? extends GrantedAuthority> getAuthorities(); //权限集合

    String getPassword(); //密码

    String getUsername(); //用户名

    boolean isAccountNonExpired(); //账户没有过期

    boolean isAccountNonLocked();  //账户没有被锁定

    boolean isCredentialsNonExpired(); //证书没有过期

    boolean isEnabled();//账户是否有效
}
